home *** CD-ROM | disk | FTP | other *** search
/ 3D Game Programming All in One / 3D Game Programming All in One Disc.iso / 3D2E / RESOURCES / CH5 / EMAGA5 / control / server / initialize.cs next >
Encoding:
Text File  |  2006-09-25  |  984 b   |  28 lines

  1. //============================================================================
  2. // control/server/initialize.cs
  3. //
  4. //  server control initialization module for 3D2E emaga5 sample game
  5. //
  6. //  Copyright (c) 2003 by Kenneth C.  Finney.
  7. //============================================================================
  8.  
  9.  
  10. function InitializeServer()
  11. //----------------------------------------------------------------------------
  12. // Prepare some global server information & load the game-specific module
  13. //----------------------------------------------------------------------------
  14. {
  15.    Echo("\n++++++++++++ Initializing module: emaga5 server ++++++++++++");
  16.  
  17.    // Specify where the mission files are.
  18.    $Server::MissionFileSpec = "*/maps/*.mis";
  19.  
  20.    InitBaseServer(); // basic server features defined in the common modules
  21.  
  22.    // Load up game server support script
  23.    Exec("./server.cs");
  24. }
  25.  
  26. function onNeedRelight() // stub routine to stop console error spam
  27. {
  28. }